<?php
/**
 * @desc 火热特卖模块
 * @author kevin.wang
 * @date 2015-01-01 12:00:00
 */
class hotsale extends CWidget
{    
    public function init()
    {
    }
 
    public function run()
    {
		$model = new HotGoods();
		$hotsaleList = $model->getHotSaleList();
		$hotSaleList = $model->hotSaleCategory($hotsaleList);
		$hotCategory = array_keys($hotSaleList);
        $this->render('hotsale', array(
				'hotSaleList' => $hotSaleList,
				'hotCategory' => $hotCategory
			));
    }
}